<!--{assign var="menu_id" value="profile"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}--> 
<script src="<!--{$userskin}-->js/profile.js"></script>
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav">编辑资料</div>
      <!--{include file="<!--{$oetplpath}-->profile_top.tpl"}-->
      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->" class="current">基本资料</a></li>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=life">个人&家庭</a></li>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=guihua">爱情规划</a></li>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=intro">内心独白</a></li>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=cond">择偶条件</a></li>
          <li><a href="<!--{$oefile}-->&c=rz">联系方式</a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="profile_list">
        <div class="hd">
          <p class="text">编辑基本资料，当前资料完整度：<em><!--{$login.info.growth}-->%</em></p>
        </div>
        <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
          <input type="hidden" name="a" id="a" value="savebase" />
          <div class="bd">
            <dl>
              <dt>用 &nbsp;户&nbsp; 名：</dt>
              <dd id="li_username">
                <label class="text"><!--{$login.info.username}--></label>
                <!--{if $login.info.editname == '0'}--> 
                <i class="edit" f="but_open_edit_item" data-mod="username"></i>（只能修改一次） 
                <!--{/if}--> 
              </dd>
            </dl>
            <dl>
              <dt>性&#12288;&#12288;别：</dt>
              <dd id="li_gender">
                <label class="text"><!--{hook mod="var" item="gender" type="text" value=$login.info.gender}--></label>
                <!--{if $login.info.editgender == '0'}--> 
                <i class="edit" f="but_open_edit_item" data-mod="gender"></i>（只能修改一次） 
                <!--{/if}--> 
              </dd>
            </dl>
            <dl>
              <dt>生&#12288;&#12288;日：</dt>
              <dd id="li_age">
                <label class="text"><!--{$login.info.ageyear}-->-<!--{$login.info.agemonth}-->-<!--{$login.info.ageday}--></label>
                <!--{if $login.info.editage == '0'}--> 
                <i class="edit" f="but_open_edit_item" data-mod="age"></i>（只能修改一次） 
                <!--{/if}--> 
              </dd>
            </dl>
            <dl>
              <dt><i></i> 地&#12288;&#12288;区：</dt>
              <dd> 
                <!--{area type='select' name='dist' depth='1' child='1' text='=请选择=' value=$login.info.dist1}--> 
                <span id="json_dist2"> 
                <!--{if $login.info.dist1 > 0}--> 
                <!--{area type='select' name='dist' depth='2' child='1' text='=请选择=' parentid=$login.info.dist1 value=$login.info.dist2}--> 
                <!--{else}-->
                <select name="dist2" id="dist2">
                  <option value="">=请选择=</option>
                </select>
                <!--{/if}--> 
                </span> <span id="json_dist3"> 
                <!--{if $login.info.dist2 > 0}--> 
                <!--{area type='select' name='dist' depth='3' child='1' text='=请选择=' parentid=$login.info.dist2 value=$login.info.dist3}--> 
                <!--{else}-->
                <select name="dist3" id="dist3">
                  <option value="">=请选择=</option>
                </select>
                <!--{/if}--> 
                </span> <span id="json_dist4"> 
                <!--{if $login.info.dist3 > 0}--> 
                <!--{area type='select' name='dist' depth='4' child='1' text='=请选择=' parentid=$login.info.dist3 value=$login.info.dist4}--> 
                <!--{else}--> 
                <!--{/if}--> 
                </span>
              </dd>
            </dl>
			<dl>
              <dt><i></i> 户&#12288;&#12288;籍：</dt>
              <dd> 
                <!--{hometown type='select' name='home' depth='1' child='1' text='=请选择=' value=$login.info.home1}--> 
                <span id="json_home2"> 
                <!--{if $login.info.home1 > 0}--> 
                <!--{hometown type='select' name='home' depth='2' child='1' text='=请选择=' parentid=$login.info.home1 value=$login.info.home2}--> 
                <!--{else}-->
                <select name="home2" id="home2">
                  <option value="">=请选择=</option>
                </select>
                <!--{/if}--> 
                </span>
              </dd>
            </dl>
            <dl>
              <dt>婚&#12288;&#12288;况：</dt>
              <dd><!--{hook mod="var" item="marry" type="select" name="marry" text="=请选择=" value=$login.info.marry}--></dd>
            </dl>
            <dl>
              <dt>身&#12288;&#12288;高：</dt>
              <dd><!--{hook mod="height" type="select" name="height" text="=请选择=" value=$login.info.height}-->CM</dd>
            </dl>
            <dl>
              <dt>体&#12288;&#12288;重：</dt>
              <dd><!--{hook mod="weight" type="select" name="weight" text="=请选择=" value=$login.info.weight}-->KG</dd>
            </dl>
            <dl>
              <dt>学&#12288;&#12288;历：</dt>
              <dd><!--{hook mod="var" item="education" type="select" name="education" text="=请选择=" value=$login.info.education}--></dd>
            </dl>
            <dl>
              <dt>职&#12288;&#12288;业：</dt>
              <dd><!--{hook mod="var" item="job" type="select" name="job" text="=请选择=" value=$login.info.job}--></dd>
            </dl>
            <dl>
              <dt>年 &nbsp;收&nbsp; 入：</dt>
              <dd><!--{hook mod="var" item="salary" type="select" name="salary" text="=请选择=" value=$login.info.salary}--></dd>
            </dl>
            <dl>
              <dt>月 &nbsp;花&nbsp; 费：</dt>
              <dd><!--{hook mod="var" item="spend" type="select" name="spend" text="=请选择=" value=$login.info.spend}--></dd>
            </dl>
            <dl>
              <dt>住房情况：</dt>
              <dd><!--{hook mod="var" item="house" type="select" name="house" text="=请选择=" value=$login.info.house}--></dd>
            </dl>
            <dl>
              <dt>购车情况：</dt>
              <dd><!--{hook mod="var" item="car" type="select" name="car" text="=请选择=" value=$login.info.car}--></dd>
            </dl>
            <dl>
              <dt>小孩情况：</dt>
              <dd><!--{hook mod="var" item="child" type="select" name="child" text="=请选择=" value=$login.info.child}--></dd>
            </dl>
            <dl>
              <dt>类&#12288;&#12288;型：</dt>
              <dd><!--{hook mod="var" item="sort" type="select" name="sort" text="=请选择=" value=$login.info.sort}--></dd>
            </dl>
            <dl>
              <dt>血&#12288;&#12288;型：</dt>
              <dd><!--{hook mod="var" item="blood" type="select" name="blood" text="=请选择=" value=$login.info.blood}--></dd>
            </dl>
            <dl>
              <dt>民&#12288;&#12288;族：</dt>
              <dd><!--{hook mod="var" item="national" type="select" name="national" text="=请选择=" value=$login.info.national}--></dd>
            </dl>
            <dl>
              <dt>个&#12288;&#12288;性：</dt>
              <dd><!--{hook mod="var" item="personality" type="select" name="personality" text="=请选择=" value=$login.info.personality}--></dd>
            </dl>
            <dl>
              <dt>外貌自评：</dt>
              <dd><!--{hook mod="var" item="looks" type="select" name="looks" text="=请选择=" value=$login.info.looks}--></dd>
            </dl>
            <dl>
              <dt>兴趣爱好：</dt>
              <dd class="hobby" id="interest_list">
                <input type="hidden" name="interest" id="interest" value="<!--{$login.info.interest}-->" />
                <!--{assign var="hobby_list" value=vo_list("mod={volistvar} where={interest}")}--> 
                <!--{foreach $hobby_list as $val}--> 
                <!--{assign var="is_select" value=<!--{tofound value="<!--{$login.info.interest}-->" tofound="<!--{$val.value}-->"}-->}--> <em<!--{if $is_select == '1'}--> class="current"<!--{/if}--> f="but_sel_var" data-id="<!--{$val.value}-->"><!--{$val.text}--></em> 
                <!--{/foreach}--> 
              </dd>
            </dl>
            <dl class="btn">
              <dt></dt>
              <dd>
                <label f="but_save">保存</label>
              </dd>
            </dl>
          </div>
          <!--//bd End-->
        </form>
      </div>
      <!--//profile_list End--> 
    </div>
  </div>
  <div class="clear"></div>
</div>
<script type="text/javascript">
$(function(){
    $("[f='but_save']").bind("click", function(){
      $("#myform").submit();
    });
    
    $("[f='but_sel_var']").bind("click", function(){
      if ($(this).hasClass("current")) {
        $(this).removeClass("current");
      }
      else {
        $(this).addClass("current");
      }
      _sel_list_val();
    });
});
function _sel_list_val() {
    $val = "";
    $("#interest_list em").each(function(){
      if ($(this).hasClass("current")) {
        $val = $val+$(this).attr("data-id")+",";
      }
    });
    $("#interest").val($val);
}
</script> 

<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->
</body></html>